package cn.tedu.tea.mapper;

import cn.tedu.tea.domain.Order;
import cn.tedu.tea.domain.vo.OrderListVO;
import cn.tedu.tea.domain.vo.OrderStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper {
    int insert(Order order);
    int deleteById(Integer id);
    int deleteByIds(Integer[] ids);
    int update(Order order);

    int countByOrderNo(String orderNo);
    int countByOrderNoAndNotId(String orderNo, Integer id);

    OrderStandardVO getStandardById(Integer id);
    List<OrderListVO> list();

}
